<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="author" content="@梦雨(QQ50361804)" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>我的内容 - {:set('title')}</title>
    <meta name="keywords" content="{:set('keywords')}">
    <meta name="description" content="{:set('description')}">
     {include file="app/index/view/header.html"}
                <!-- 内容开始 -->
                <div class="col-12 col-md-12 col-lg-10">
                    <div class="box box-content" style="min-height: 625px;">
                        <div class="filterspace__controls">
                            <ul class="nav nav-pills" id="pills-tab" role="tablist">
                                <li class="nav-item">
                                    <a href="{:url('index/user/content')}" class="nav-link {if strpos(get_url(), 'content.html') !== false}active{/if}{if strpos(get_url(), 'content-m') !== false}active{/if}">我的投稿</a>
                                </li>
                                <li class="nav-item">
                                    <a href="{:url('index/user/content',array('id'=>'2'))}" class="nav-link {if get('id','1')=='2'}active{/if}">我的收藏</a>
                                </li>
                            </ul>
                        </div>    
                        <!--内容-->
                        {if strpos(get_url(), 'content.html') !== false || strpos(get_url(), 'content-m') !== false}
                        <div class="layui-tab layui-tab-brief">
                            <ul class="layui-tab-title">
                                <li {if get('model','1')=='1'}class="layui-this"{/if}>
                                    <a href="{:url('index/user/content')}">文章</a>
                                </li>   
                                {volist name=":fun_s('model',array('open'=>1),'id desc',10,false)" id="vo"}
                                <li {if input('model')==$vo.name}class="layui-this"{/if}>
                                <a href="{:url('index/user/content')}?model={$vo.name}">{$vo.title}</a>
                                </li>
                                 {/volist} 
                            </ul>
                            <div class="layui-tab-content"></div>
                        </div>      
                        <script>
                        layui.use('element', function(){
                          var element = layui.element;
                        });
                        </script>
                        {volist name=":fun_s(get('model','html'),array('uid'=>session('userid')),'time desc',10,false)" id="vo" empty="
                        <div align='center' style='margin: 0 auto;'>
                            <img src='/public/img/empty.jpg' height='200' />
                            <h4 class='pt-20'>
                               没有更多的记录
                               </h4>
                        </div>"}
                        <div class="sides_list_property large mt-10">
                            <div class="sides_list_property_detail">
                                <h4><a target="_blank" style="font-size: 16px;color: #2D3954;" href="{if $vo.m=='html'}{:url('index/index/html',array('id'=>$vo.id))}{else/}{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}{/if}">{$vo.title}</a></h4><span>
                                <div class="lists_property_price">
                                    <div class="lists_property_price_value first">
                                        {if $vo.open==1}<span class="xg" href="javascript:;">正常</span>{else/}<span class="xg" href="javascript:;">关闭</span>{/if}<span class="price_status">发布时间：{$vo.time|date="Y-m-d",###}</span>
                                    </div>
                                </div>      
                            </div>
                        </div> 
                        <div class="sides_list_property large mt-10">
                            <a href="{:url('index/user/add',array('id'=>$vo.id))}?model={:get('model','html')}" class="layui-btn layui-btn-sm mt-1 ml-1">编辑</a>
                            {if $vo.open!=1}
                            <button class="layui-btn layui-btn-sm layui-btn-danger mt-1 ml-1 del_t" name="确定要这条信息吗？" url="{:url('index/api/deletes',array('model'=>get('model','html'),'id'=>$vo.id))}">删除</button>
                            {/if}
                        </div> 
                        {/volist} 
                        <!--分页-->
                        {:fun_s(get('model','html'),array('uid'=>session('userid')),'time desc',10,false)->render()}
                        {/if}
                        {if get('id','1')=='2'}
                        {volist name=":fun_s('shoucang',array('uid'=>session('userid')),'time desc',6,false)" id="vo" empty="
                        <div align='center' style='margin: 0 auto;'>
                            <img src='/public/img/empty.jpg' height='200' />
                            <h4 class='pt-20'>
                               没有更多的记录
                               </h4>
                        </div>"}
                        <div class="sides_list_property large mt-10">
                            <div class="sides_list_property_detail">
                                <h4><a target="_blank" style="font-size: 16px;color: #2D3954;" href="{if dingyi($vo.m,'html')=='html'}{:url('index/index/html',array('id'=>fun_sc_p(dingyi($vo.m,'html'), array('id'=>$vo['tid']), 'id')))}{else/}{:url('index/model/html',array('model'=>dingyi($vo.m,'html'),'id'=>fun_sc_p(dingyi($vo.m,'html'), array('id'=>$vo['tid']), 'id')))}{/if}">{:fun_sc_p(dingyi($vo.m,'html'), array('id'=>$vo['tid']), 'title')}</a></h4><span>
                                <div class="lists_property_types mt-10">
                                    <div class="property_types_vlix" style="border-radius: 5px;padding: 10px;">{:cut_c(fun_sc_p(dingyi($vo.m,'html'), array('id'=>$vo['tid']), 'content'),50)}</div>
                                </div>
                                
                                <div class="lists_property_price">
                                    <div class="lists_property_price_value first">
                                        <span class="price_status">收藏时间：{$vo.time|date="Y-m-d",###}</span>
                                        <span class="price_status">[{:dingyi(fun_model(dingyi($vo.m,'html'),'title'),'文章')}]</span>
                                    </div>
                                    <span class="post-date ml-0 del_t" name="确定要这条信息吗？" url="{:url('index/api/deletes',array('model'=>'shoucang','id'=>$vo.id))}"><i class="iconfont">&#xe69a;</i> 删除</span>
                                </div> 
                            </div>
                        </div>  
                        {/volist} 
                        <!--分页-->
                        {:fun_s('shoucang',array('uid'=>session('userid')),'time desc',6,false)->render()}
                        {/if}
                        <div class="clearfix"></div>
                    </div> 
                </div>
            </div>
        </div>
    </main>    
    <div class="h66"></div>
    {:hook('usercontent')}
    {include file="app/index/view/footer.html"}